package Hw_01;

public class Employee extends Person{

        private String office;
        private double wage;
        private String hiredate;

        public Employee(){

        }

        public Employee(String name, String address, String telephone, String email, String office, double wage, String hiredate) {
            super(name, address, telephone, email);
            this.office = office;
            this.wage = wage;
            this.hiredate = hiredate;
        }

        public String getOffice() {
            return office;
        }

        public void setOffice(String office) {
            this.office = office;
        }

        public double getWage() {
            return wage;
        }

        public void setWage(double wage) {
            this.wage = wage;
        }

        public String getHiredate() {
            return hiredate;
        }

        public void setHiredate(String hiredate) {
            this.hiredate = hiredate;
        }


        public void say(){
            System.out.println("姓名"+this.getName()+"地址"+this.getAddress()+"电话号码"+this.getTelephone()+"电子邮件"+this.getEmail()
                    +"办公室"+this.getOffice()+"工资"+this.getWage()+"受雇日期"+this.getHiredate());
        }
    }

